package com.basic.business.common.shiro;

import lombok.AllArgsConstructor;
import lombok.Data;
import org.apache.shiro.authc.UsernamePasswordToken;

/**
 * 自定义token，可增加其他参数
 */
@Data
public class CustomerToken extends UsernamePasswordToken {
    public CustomerToken(String username, String password) {
        super(username, password);
    }

    private String token;

    public CustomerToken(String token) {
        this.token = token;
    }
}